import mmap

class my_mmap:
    def __init__(self,path):
        self.fp = open(path,'rwb')
        self.mem = mmap.mmap(fp.fileno(),4096)
    def close(self):
        self.mem.close()
        self.fp.close()
    def get_mmap(self):
        return self.mem
        
    
